package com.sbtr.business.material.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.sbtr.business.material.entity.MaterialInfo;
import com.sbtr.open.material.dto.MaterialInfoDto;
import com.sbtr.overview.dto.AllCountDto;
import com.sbtr.overview.dto.MaterialSetTypeCountDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 素材图片表 Mapper 接口
 * </p>
 *
 * @author wangwh15

 */
public interface MaterialInfoMapper extends BaseMapper<MaterialInfo> {

//	public List<CalibrationCountDto> countByCalibrationSetId(@Param("calibrationSetIds") List<Long> calibrationSetIds);

    //public List<MaterialSetDto> countPicByMaterialSetId(@Param("materialSetIds") List<Long> materialSetIds);

    IPage<MaterialInfoDto> customPage(IPage<MaterialInfoDto> page, @Param(Constants.WRAPPER) QueryWrapper<MaterialInfoDto> wrapper);

    AllCountDto materialCount(String creater);

    List<MaterialSetTypeCountDto> materialSetTypeCount(@Param("creater")String creater);

    public List<String> getMaterialType();

    void updateIsAvailableById(@Param("id") Long id);

}
